package com.example.demo.mapper;


import com.example.demo.entity.userAdd;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface userSec {

    public Integer adduserSec(@Param("id")String id, @Param("life")String life, @Param("age")Integer age, @Param("telephone")String telephone, @Param("date") LocalDateTime createTime,@Param("teacher")String teacher,@Param("teacherId")Integer teacherId);


    public List<userAdd> selectall(@Param("teacherId")Integer teacherId);

    userAdd selectUser(@Param("userId")String userId);

    public List<userAdd> selectAll();

    //name loginName password 都是 user_login表的 liftCity 是user_sec 表的 id为学生的 id  多表更改 用 id 进行绑定 利用 id 进行 指定输入
    Integer updateSec(@Param("id")String id,@Param("name")String name,@Param("lifeCity")String lifeCity,@Param("loginName")String loginName,@Param("password")String password);

}
